home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Packmags
/
NewsFlash - Issue 07 (1990-01)(UGA - 17-Bit Software)(Disk 1 of 2)[a intro].zip
/
NewsFlash - Issue 07 (1990-01)(UGA - 17-Bit Software)(Disk 1 of 2)[a intro].adf
/
prog
/
choppie.doc
< prev
next >
Wrap
Text File
|
1996-12-24
|
6KB
|
240 lines
-----------------
Font Chopper V1.0
by VECTOR
-----------------
Message to all SEKA freaks: SEKA is shit, DEVPAC is it !
DEVPAC 2.14 ofcourse (1.0 is shit)
---------------------------------------------------------------------------
RUNNING IT
When you start the font-chopper, you'll be asked for the name of a
font-picture. The font-picture contains the font-data in a grid.
(An example grid is suplied on this disk too.) This picture MUST
be compressed. (DPaint saves always compressed) The program will
notify you when it's not.
The next thing to do is to fill in the name of the fontdata
After this you'll have to enter some information about the font itself.
(Width and height)
Now the program will ask you, how much characters you have placed horz.
and how much you have placed vert.
Next is the amount of datas you want to cut out.
---------------------------------------------------------------------------
After all this text an example :
You draw a font in a grid, which looks like this
|--- 3 words width ---|
+-----------------------+-----------------------+ <-+
| | | | -
| | | one pixel |
| | | high |
| | | | 48 pixels
| | | | high
| A | B | |
| | | |
| | | |
| | | |
| | | -
+-----------------------+-----------------------+ <-+
| | | |
| | | one pixel
| | | high
| | |
| | |
| C | NOTHING |
| | |
| | |
| | |
| | |
+-----------------------+-----------------------+
^ ^
+--- one pixel widht ---+
The grid MUST start in the upper-left corner of the screen.
Let's say your 3 plane font-picture is called 'font'
and you want to save it as 'font.data'
and you only want to use tree letters.
You would have to type in:
1> FC
Font chopper V1.0
By Vector of Mirage
Name of font-picture :df0:font
Save Font data as :df0:font.data
Font width (words) :3
Font height :48
Number of char horz. :2
Number of char vert. :2
Total number of char. :3
Operation completed.
1>
Now follows a short passage from the TMT-DOC, because the
TextConverter was one of the reasons I wrote the font-chopper.
TMT and the Font Chopper should be on one disk.
---------------------------------------------------------------------------
The textconverter:
WHY?
The textconverter was written to reduce the fontdata to a minimum.
The textconverter converts ASCII text directly into fontpositions.
The only thing you have to do is, get a byte, multiply it with your
fontsize and add it to your fontbase. You now have a pointer to character.
No messing around with modulos or such things. Another advantage :
No more text ripping. All text is unreadable.
HOW?
Converting is nice, but what stands were ?
Well here is the list :
Character: ASCII-code: Converted code:
---------- ----------- ---------------
SPACE $20 $00
! $21 $01
" $22 $02
& $26 $03
' $27 $04
( $28 $05
) $29 $06
, $2C $07
- $2D $08
. $2E $09
: $3A $0A
? $3F $0B
A $41 $0C
B $42 $0D
C $43 $0E
D $44 $0F
E $45 $10
F $46 $11
G $47 $12
H $48 $13
I $49 $14
J $4A $15
K $4B $16
L $4C $17
M $4D $18
N $4E $19
O $4F $1A
P $50 $1B
Q $51 $1C
R $52 $1D
S $53 $1E
T $54 $1F
U $55 $20
V $56 $21
W $57 $22
X $58 $23
Y $59 $24
Z $5A $25
0 $30 $26
1 $31 $27
2 $32 $28
3 $33 $29
4 $34 $2A
5 $35 $2B
6 $36 $2C
7 $37 $2D
8 $38 $2E
9 $39 $2F
a $61 $30
b $62 $31
c $63 $32
d $64 $33
e $65 $34
f $66 $35
g $67 $36
h $68 $37
i $69 $38
j $6A $39
k $6B $3A
l $6C $3B
m $6D $3C
n $6E $3D
o $6F $3E
p $70 $3F
q $71 $40
r $72 $41
s $73 $42
t $74 $43
u $75 $44
v $76 $45
w $77 $46
x $78 $47
y $79 $48
z $7A $49
So that was the list. The lower-case is handy for funny objects or so.
If you want to include speed-codes or other codes in your text, then
just type $ follow by and HEX code. This code will be directly converted
into source.
Example :
'AAA $F5 AAA' would be converted to:
DC.B $0C,$0C,$0C,$00,$F5,$00,$0C,$0C,$0C
Your font-data MUST be saved in the order of the list.
That means:
First 'SPACE' then '!' etc.
I hope that you'll find this option usefull.
---------------------------------------------------------------------------
GENERAL INFORMATION
Program name : Font Chopper
Version : 1.0
Last update : 1 Jan 1990
Language : Assembler
Assembled with : DevPac 2.14 (There is no better one !)
Written by : VECTOR of Mirage Holland
---------------------------------------------------------------------------
For bug-reports, new ideas , updates, etc.
Write to:
P. de Boer
Zeeloodsenlaan 79
1785 BM Den Helder
Holland
This program may be freely copied, but you have to include the DOC file.
SPREAD THE DISK AND THE WORD !
MIRAGE BEYOND THE LIMITS OF PERFECTION
========================================